package com.yohann.designPattern.prototype.deepClone;

import java.io.Serializable;

/**
 * <p>
 * 深拷贝
 * </p>
 *
 * @author Yohann
 * @since 2021/2/2 15:49
 */
public class DeepCloneableTarget implements Serializable, Cloneable {
    private static final Long serialVersionUID = 1L;

    private String cloneName;
    private String cloneClass;

    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    @Override
    protected DeepCloneableTarget clone() throws CloneNotSupportedException {
        return (DeepCloneableTarget)super.clone();
    }
}